package com.geostart.constructionland.system.service;

import com.geostar.constructionland.common.entity.dlbm.DlbmVersion;
import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "constructionland-analyse")
public interface DlbmVersionFeignClient {

    @RequestMapping(value = "/dlbmVersion/add", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse addDlbmVersion(@RequestBody DlbmVersion dlbmVersion);

    @RequestMapping(value = "/dlbmVersion/getVersions", method = RequestMethod.POST)
    ExtJsAjaxResponse getDlbmVersions(@RequestParam("page") int pageNo, @RequestParam("limit") int pageNum,
                                         @RequestParam("versionNumber") String versionNumber);

    @RequestMapping(value = "/dlbmVersion/del", method = RequestMethod.POST)
    ExtJsAjaxResponse delDlbmVersion(@RequestParam(value = "versionId") String versionId);

    @RequestMapping(value = "/dlbmVersion/update",method = RequestMethod.POST,consumes = "application/json")
    ExtJsAjaxResponse updateDlbmVersion(@RequestBody DlbmVersion dlbmVersion);
}
